package com.chenxingnet.service.Impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.chenxingnet.dao.RoleMapper;
import com.chenxingnet.dto.Role;
import com.chenxingnet.service.IRoleService;


@Service("roleService")
public class RoleServiceImpl   implements IRoleService
{

	@Resource
	RoleMapper  roleMapper;
	
	public List<Role> getAllRoles() {
		return roleMapper.getAllRoles();
	}

	public List<Role> getOneUserRoleByAuth(Integer roleid) {
		return roleMapper.getOneUserRoleByAuth(roleid);
	}

}
